A heterocyclic compound having a metal ion attached by coordinate bonds to at least two nonmetal ions